<include file="Public:header" />
<link type="text/css" href="__CSS__/estate.css" rel="stylesheet" />
<link href="__JS__/xqjs/css/style.css" rel="stylesheet" />
<script type="text/javascript" src="__JS__/xqjs/js/script.js"></script>
<div class="main">
<include file="Estate:head" />
<div class="s_h_h_show01 overflow_h">
    <div class="xq_div">
        <div class="xq_l">
            <div id="tFocus">
                <div class="prev" id="prev"></div>
                <div class="next" id="next"></div>
                <ul id="tFocus-pic">
                    <php>if($img_list){</php>
                    <volist name='img_list' id='vo'>
                        <li><img src="{$vo.img}" width="338" height="243" alt="{$vo.alt}" /></li>
                    </volist>
                    <php>}else{</php>
                    <li><img src="{$estate.img}" width="338" height="243" /></li>
                    <php>}</php>
                </ul>
                <div id="tFocusBtn">
                    <a href="javascript:void(0);" id="tFocus-leftbtn">上一张</a>
                    <div id="tFocus-btn">
                        <ul>
                            <php>if($img_list){</php>
                            <volist name='img_list' id='vo'>
                                <li <php>if(!$key){</php> class="active" <php>}</php> ><img src="{$vo.img}" width="87" height="57" alt="{$vo.alt}" /></li>
                            </volist>
                            <php>}else{</php>
                            <li class="active" ><img src="{$estate.img}" width="87" height="57"/></li>
                            <php>}</php>
                        </ul>
                    </div>
                    <a href="javascript:void(0);" id="tFocus-rightbtn">下一张</a>
                </div>
            </div>
        </div>
        <div class="xq_r">
            <table class="xq_tab">
                <tr>
                    <td class="td_t">二手房源</td>
                    <td><a href="{:U('Estate/used',array('id'=>$estate['id']))}">{$estate.sell_count}</a>套</td>
                    <td class="td_t">出租房源</td>
                    <td><a href="{:U('Estate/rental',array('id'=>$estate['id']))}">{$estate.lease_count}</a>套</td>
                </tr>
                <tr>
                    <td class="td_t">停车位</td>
                    <td>{$data.chewei}</td>
                    <td class="td_t">绿化率</td>
                    <td>{$data.lhl}</td>
                </tr>
                <tr>
                    <td class="td_t">楼盘类型</td>
                    <td>{$data.wylx}</td>
                    <td class="td_t">建筑年代</td>
                    <td>{$estate.years}</td>
                </tr>
                <tr>
                    <td class="td_t">总户数</td>
                    <td>{$data.hushu}</td>
                    <td class="td_t">总栋数</td>
                    <td>{$data.zds}</td>
                </tr>
                <tr>
                    <td class="td_t">小区地址</td>
                    <td colspan="3">{$estate.address}</td>
                </tr>
                <tr>
                    <td class="td_t">楼层状况</td>
                    <td colspan="3">{$data.lczk}</td>
                </tr>
                <tr>
                    <td class="td_t">物业费</td>
                    <td colspan="3">{$data.wyf}</td>
                </tr>
                <tr>
                    <td class="td_t">物业公司</td>
                    <td colspan="3">{$data.wygs}</td>
                </tr>
            </table>
        </div>
     </div>
</div>

<div class="body_house overflow_h">
    <div class="body_left">
        <div class="overflow_h">
            <div class="introduce_house01">
                <div class="n_house_show05">
                    <h1 class="n_h_title"><span class="s_bg_line">二手房源</span><span class="more">
                         <a href="{:U('Estate/used',array('id'=>$estate['id'],'room'=>4))}" title="4居室">4居室</a>  |  <a href="{:U('Estate/used',array('id'=>$estate['id'],'room'=>3))}" title="3居室">3居室</a>  |  <a href="{:U('Estate/used',array('id'=>$estate['id'],'room'=>2))}" title="2居室">2居室</a>  |  <a href="{:U('Estate/used',array('id'=>$estate['id'],'room'=>1))}" title="1居室">1居室</a>  |  <a href="{:U('Estate/used',array('id'=>$estate['id']))}">更多</a>
        </span></h1>
                    <ul class="overflow_h">
                    <volist name='used_list' id='vo'>
                    <li <php>if($key==4){ </php>style="margin-right:0"<php>}</php> >
                        <span class="n_house_show05_img"><a target="_blank" href="{:U('Used/detail',array('id'=>$vo['id']))}"><img width="210" height="168" src="{$vo.img}" title="{$vo.title}" alt="{$vo.title}"></a></span>
                        <h2><a target="_blank" href="{:U('Used/detail',array('id'=>$vo['id']))}" title="{$vo.title}">{$vo.title}</a></h2>
                        <p>{$vo.room}室{$vo.hall}厅{$vo.toilet}卫{$vo.balcony}阳台{$vo.kitchen}厨 {$vo.area}㎡</p>
                    </li>
                    </volist>
                    </ul>
                </div>
                <div class="n_house_show05">
                    <h1 class="n_h_title"><span class="s_bg_line">出租房源</span><span class="more">
                         <a href="{:U('Estate/rental',array('id'=>$estate['id'],'room'=>4))}" title="4居室">4居室</a>  |  <a href="{:U('Estate/rental',array('id'=>$estate['id'],'room'=>3))}" title="3居室">3居室</a>  |  <a href="{:U('Estate/rental',array('id'=>$estate['id'],'room'=>2))}" title="2居室">2居室</a>  |  <a href="{:U('Estate/rental',array('id'=>$estate['id'],'room'=>1))}" title="1居室">1居室</a>  |  <a href="{:U('Estate/rental',array('id'=>$estate['id']))}">更多</a>
        </span></h1>
                    <ul class="overflow_h">
                        <volist name='rental_list' id='vo'>
                            <li <php>if($key==4){ </php>style="margin-right:0"<php>}</php> >
                            <span class="n_house_show05_img"><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}"><img width="210" height="168" src="{$vo.img}" title="{$vo.title}" alt="{$vo.title}"></a></span>
                            <h2><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}" title="{$vo.title}">{$vo.title}</a></h2>
                            <p>{$vo.room}室{$vo.hall}厅{$vo.toilet}卫{$vo.balcony}阳台{$vo.kitchen}厨 {$vo.area}㎡</p>
                            </li>
                        </volist>
                    </ul>
                </div>
            <php>if($estate['map']){</php>
            <div class="introduce_house03 overflow_h">
                <h1 class="n_h_title"><span id="map" class="s_bg_line">地理位置</span></h1>
                <div style="height: 500px;margin-top:10px;overflow: hidden;width: 1180px;">
                    <iframe width="860" height="auto" frameborder="0" scrolling="no" src="{:U('Api/map',array('id'=>$estate['id'],'model'=>'estate'))}" id="main" style="height: 500px; width: 1180px;"></iframe>
                </div>
            </div>
            <php>}</php>
            <div class="introduce_house03 overflow_h">
               <div>
                   <div class="xq_info_l">
                       <h1 class="n_h_title"><span class="s_bg_line">小区简介</span></h1>
                       {$estate.info}
                   </div>
                   <div class="xq_info_r">
                       <div class="xq_tjrs">
                           <h1 class="n_h_title"><span class="s_bg_line">同区域小区</span></h1>
                           <ul>
                               <volist name='area_list' id='vo'>
                                   <li><a href="{:U('Estate/detail',array('id'=>$vo['id']))}" target="_blank">{$vo.title}</a></li>
                               </volist>
                           </ul>
                       </div>
                   </div>
               </div>
            </div>
        </div>
    </div>
</div>
<div id="abc"></div>
</div>
<script type="text/javascript">
    //图片切换
    addLoadEvent(Focus());
</script>
<include file="Public:footer" />